package com.bgrconsulting.stockorderentry.service.converter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.bgrconsulting.stockorderentry.service.model.MarginAccountBalance;

@XmlRootElement(name = "marginAccountBalance")
public class MarginAccountBalanceConverter {
	private MarginAccountBalance enity = null;
	
	public MarginAccountBalanceConverter() {
		enity = new MarginAccountBalance();
	}
	
	public MarginAccountBalanceConverter(MarginAccountBalance marginAccountBalance) {
		enity = marginAccountBalance;
	}
	
	 @XmlElement(name = "dtBalance")
	public DTBalanceConverter getDTBalance() {
		return new DTBalanceConverter(enity.getDTBalance());
	}
	
	 @XmlElement(name = "fedCall")
	public Double getFedCall() {
		return enity.getFedCall();
	}
	
	 @XmlElement(name = "marginBalanceWithDrawal")
	public Double getMarginBalanceWithDrawal() {
		return enity.getMarginBalanceWithDrawal();
	}
	
	 @XmlElement(name = "marginEquity")
	public Double getMarginEquity() {
		return enity.getMarginEquity();
	}
	
	 @XmlElement(name = "marginBalance")
	public Double getMarginBalance( ) {
		return enity.getMarginBalance();
	}

	 @XmlElement(name = "maxAvailableForWithDrawal")
	public Double getMaxAvailableForWithDrawal() {
		return enity.getMaxAvailableForWithDrawal();
	}

	 @XmlElement(name = "nonMarginableSecuritiesAndOptions")
	public Double getNonMarginableSecuritiesAndOptions() {
		return enity.getNonMarginableSecuritiesAndOptions();
	}
	
	 @XmlElement(name = "marginableSecurities")
	public Double getMarginableSecurities() {
		return enity.getMarginableSecurities();
	}
	
	 @XmlElement(name = "totalShortValue")
	public Double getTotalShortValue() {
		return enity.getTotalShortValue();
	}
	
	 @XmlElement(name = "shortReserve")
	public Double getShortReserve() {
		return enity.getShortReserve();
	}

}
